package router

import (
	"api/handler/api"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	v1 := r.Group("v1")
	{
		good := v1.Group("good")
		{
			good.POST("goodListOne", api.GoodListOne)
		}
		order := v1.Group("order")
		{
			order.GET("orderList", api.OrderList)
			order.POST("orderAdd", api.OrderAdd)
		}
	}
}
